package com.mine.mybatis.excutor;

import com.mine.mybatis.mapping.MappedStatement;
import com.mine.mybatis.session.Configuration;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    <E> List<E> query(Configuration configuration, MappedStatement ms, Object parameter) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, IntrospectionException, InstantiationException, InvocationTargetException, Exception;

    int update(Configuration configuration,MappedStatement ms, Object parameter) throws SQLException, ClassNotFoundException, Exception;
}
